<ul id="<?php echo $id?>" class="y_image_ul">
	<?php
	if(empty($pictures)){
		if($has_main_picture){
			echo '<li class="main_li" title="主图" ' . ($mutil ? '' : 'style="display:none"') . '><span class="red">*</span>主图<input type="hidden" name="'. $main_picture_name .'" value=""/></li>';
		}
	}else{
		if($has_main_picture){
			echo '<li class="main_li" title="主图" ' . ($mutil ? '' : 'style="display:none"') . '><img src="' . CommonHelper::get_thumb($main_picture, $thumb) . '" class="auto_img"/><input type="hidden" name="'. $main_picture_name .'" value="' . $main_picture . '"/></li>';
		}
		foreach ($pictures as $img_item){
			$src = $img_item['path'];
			echo '<li class="img_li">';
			if(!empty($base_path)){
				$src = IMAGE_PATH . $base_path . '/' . $src;
			}
			echo CHtml::image(CommonHelper::get_thumb($src, $thumb), '', array('class' => 'auto_img'));
			echo CHtml::hiddenField($name, $img_item['path']);
			echo '</li>';
		}
	}
	?>
	<li class="add_li" title="点击添加图片">
		<input id="file_<?php echo $id?>" name="file_upload" type="file" multiple="true">
	</li>
</ul>
<div id="queue_<?php echo $id?>"></div>